<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>新话题管理</title>
		<link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/platform.css" />
        <link rel="stylesheet" href="css/cropper.css" />
        <link rel="stylesheet" href="css/cropper-demo.css" />
        <link rel="stylesheet" href="css/table.css" />
		<link rel="stylesheet" href="css/topic.css" />
	</head>

	<body>
		<div class="header">
            <div class="u-title">新话题管理</div>
        </div>
        <!-- 页面内容展示区域 -->
        <div class="container" ms-controller="mainController">
            <div class="u-multiform">
                <div class="column">
                    <div class="cell">
                        <label>内容关键词：</label>
                        <div class="cnt-box">
                            <div class="combox">
                                <input class="u-ipt" ms-duplex="keywords" />
                            </div>
                        </div>
                    </div>   
                </div>
                <div class="column btn-box">
                    <div class="cell">
                        <label></label>
                        <div class="cnt-box">
                            <button class="u-btn small" ms-click="searchData">查询</button>
                        </div>
                    </div>
                </div>                        
            </div> 
            <div id="topicTable" ms-controller="topicTable"></div>
            <script type="avalon" id="tabletopic">
                <div class="tableWrapper">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>新主题名称</th>
                                <th>姓名</th>
                                <th>时间</th>
                                <th class="operate">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-row="sources">
                                <td>{{row.topicName}}</td>
                                <td>{{row.words}}</td>
                                <td>{{row.endTime}}</td>
                                <td class="operate">
                                    <a href="javascript:;" ms-click="customFuncs.delPop()">删除</a>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="8">
                                    <div class="pager">
                                        <div class="first-page" ms-click="firstpage" ms-class={{firstpagestyle}}>首页</div>
                                        <div class="pre-page" ms-click="prepage" ms-class={{prepagestyle}}>上一页</div>
                                        <div class="current-page">
                                            第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage" />页
                                            <span class="totalpage">共 {{totalpage}} 页</span>
                                        </div>
                                        <div class="next-page" ms-click="nextpage" ms-class={{nextpagestyle}}>下一页</div>
                                        <div class="last-page" ms-click="lastpage" ms-class={{lastpagestyle}}>尾页</div>
                                        <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                    </div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </script>
        
        </div>
        <!--弹框区域-->
        <div ms-controller="popController">
            <div class="u-popup" id="popup_confirm">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="warning"></div>
                                <p ms-if="confirmType=='del'">确定要删除该标签吗？</p>
                            </div>
                            <div class="btn-box">
                                <button ms-if="confirmType=='del'" class="u-btn" ms-click="delTag()">确定</button>
                                <button class="u-btn gray btn-close">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="u-popup" id="popup_tips">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="error"></div>
                                <p></p>
                            </div>
                            <div class="btn-box">
                                <button class="u-btn btn-close">确定</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="u-popup" id="popup_cnt">
                <div class="bg"></div>
                <div class="asTable-box">
                    <div class="asTable">
                        <div class="asTableCell">
                            <div class="asCell dialog">
                                <a href="javascript:;" class="close btn-close">×</a>
                                <p class="title">新增主题</p>
                                <!--<form id="form_saveTopic" enctype="multipart/form-data" method="post">-->
                                    <div class="container">
                                        <div class="u-form">
                                            <div class="column">
                                                <label><span>*</span>主题：</label>
                                                <input name="bizcode" ms-duplex="topicName" class="u-ipt" type="text"/>
                                            </div>
                                            <div class="column">
                                                <label><span>*</span>时间：</label>
                                                 <input class="u-ipt ipt-datepicker" type="text" id="endTime" ms-duplex="endTime" />
                                            </div>
                                            <div class="column">
                                                <label><span>*</span>图片：</label>
                                                <div class="cnt-box">
                                                    <form id="form_uploadImg" enctype="multipart/form-data" method="post">
                                                        <div class="upload-img">
                                                            <p class="as-btn">选择文件</p>
                                                            <input type="file" name="upfile" id="cropper-input">
                                                        </div>
                                                        <div class="preview-container">
                                                            <input type="hidden" name="x" id="preview-x"/>
                                                            <input type="hidden" name="y" id="preview-y"/>
                                                            <input type="hidden" name="width" id="preview-width"/>
                                                            <input type="hidden" name="height" id="preview-height"/>
                                                            <input type="hidden" name="type" value="1"/>
                                                            <div class="image-container target" id="cropper-target">
                                                              <img src="" class="noavatar" />
                                                            </div>
                                                            <div class="large-wrapper">
                                                              <div class="image-container large" id="preview-large">
                                                                <div class="image-wrapper">
                                                                  <img src="" class="noavatar" />
                                                                </div>
                                                              </div>
                                                              <button ms-click="uploadImg" class="u-btn small">上传图片</button>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                            
                                        </div>
                                    </div>
                                    <!--</form>-->
                                <div class="btn-box">
                                    <button class="u-btn" ms-click="save">保存</button>
                                    <button class="u-btn gray btn-close">取消</button>
                                </div>
                               

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/swift-ui-table-1.1.js"></script>
        <script src="js/cropper.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/topicmanage.js"></script>
        <script src="http://10.27.20.33:8080/rap.plugin.js?projectId=15"></script>
	</body>

</html>
